package models;
import play.db.jpa.GenericModel;
import javax.persistence.*;
import java.util.*;
/**
 * Created with IntelliJ IDEA.
 * User: JL
 * Date: 26/06/12
 * Time: 04:28 PM
 * To change this template use File | Settings | File Templates.
 */
@Entity(name = "hidtipomodelohidrologico")
public class Hidtipomodelohidrologico  extends GenericModel {

    @Id
    @SequenceGenerator(name="hidtipomodelohidrologico_seq", sequenceName="hidtipomodelohidrologico_tipmodhidid_seq", allocationSize=0)
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="hidtipomodelohidrologico_seq")
    private int tipmodhidid;

    private String tipmodhidnom;
    private String tipmodhiddesc;

    @OneToMany(mappedBy = "hidtipomodelohidrologico")
    private List<Hidmodelohidrologico> hidmodelohidrologicos;

    public Hidtipomodelohidrologico() {
    }


    public Hidtipomodelohidrologico(int tipmodhidid, String tipmodhidnom) {
        this.tipmodhidid = tipmodhidid;
        this.tipmodhidnom = tipmodhidnom;
    }

    public Hidtipomodelohidrologico(int tipmodhidid, String tipmodhidnom, String tipmodhiddesc, List<models.Hidmodelohidrologico> hidmodelohidrologicos) {
        this.tipmodhidid = tipmodhidid;
        this.tipmodhidnom = tipmodhidnom;
        this.tipmodhiddesc = tipmodhiddesc;
        this.hidmodelohidrologicos = hidmodelohidrologicos;
    }

    public int getTipmodhidid() {
        return this.tipmodhidid;
    }

    public void setTipmodhidid(int tipmodhidid) {
        this.tipmodhidid = tipmodhidid;
    }
    public String getTipmodhidnom() {
        return this.tipmodhidnom;
    }

    public void setTipmodhidnom(String tipmodhidnom) {
        this.tipmodhidnom = tipmodhidnom;
    }
    public String getTipmodhiddesc() {
        return this.tipmodhiddesc;
    }

    public void setTipmodhiddesc(String tipmodhiddesc) {
        this.tipmodhiddesc = tipmodhiddesc;
    }
    public List<Hidmodelohidrologico> getHidmodelohidrologicos() {
        return this.hidmodelohidrologicos;
    }

    public void setHidmodelohidrologicos(List<Hidmodelohidrologico> hidmodelohidrologicos) {
        this.hidmodelohidrologicos = hidmodelohidrologicos;
    }
}
